package com.tj.collection.controller.lending.request;

import com.fqgj.common.api.ParamsObject;
import com.fqgj.common.utils.StringUtils;
import com.fqgj.exception.common.ApplicationException;

/**
 * Created with IntelliJ IDEA.
 * User: pavan
 * Date: 2020/3/29
 * Time: 下午12:24
 */
public class ClExtensionAddRequest extends ParamsObject {

    private String collectionNo;

    public String getCollectionNo() {
        return collectionNo;
    }

    public ClExtensionAddRequest setCollectionNo(String collectionNo) {
        this.collectionNo = collectionNo;
        return this;
    }

    @Override
    public void validate() {
        if (StringUtils.isEmpty(collectionNo)) {
            throw new ApplicationException("collection cannot be empty");
        }
    }
}
